home *** CD-ROM | disk | FTP | other *** search
- Path: serra.unipi.it!news
- From: Luca Fiorani <fioranil@ilc.pi.cnr.it>
- Newsgroups: comp.lang.c
- Subject: Re: Funcion STRCMP no lexicographical
- Date: 25 Jan 1996 17:19:45 GMT
- Organization: Universita' di Pisa
- Message-ID: <4e8e3h$k0s@serra.unipi.it>
- NNTP-Posting-Host: helen.cli.di.unipi.it
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3_U1 sun4m)
- X-URL: news:comp.lang.c
-
- Developing GCC/G++ programs under sparc-sun-sunOS4.1.3 , i need simply to
- compare arrays that may include characters>127(dec.).
- STRCMP or MEMCMP do this lexicographically, that is what i don't want to do.
- Are there other functions that compares 2 arrays NOT lexicografically ?
- (the matter is that lexicographically chars>127 are BEFORE chars<=127)
-
- Thanks
-
- Luca <fioranil@ilc.pi.cnr.it>
-
- P.S.:i wish to avoid explicit byte-to-byte comparison in my program.
-
-